package com.cy.shiro.service.impl;

import com.cy.shiro.dao.SysRoleDao;
import com.cy.shiro.pojo.SysRole;
import com.cy.shiro.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleDao sysRoleDao;

    @Override
    public List<SysRole> list() {
        return sysRoleDao.list();
    }

    @Override
    public List<SysRole> useList() {
        return sysRoleDao.useList();
    }

    @Override
    public Integer addPost(SysRole sysRole) {
        return sysRoleDao.addPost(sysRole);
    }

    @Override
    public Integer editPost(SysRole sysRole) {
        return sysRoleDao.editPost(sysRole);
    }

    @Override
    public Integer delPost(Integer id) {
        return sysRoleDao.delPost(id);
    }

}
